<form action="./" method="get" class="forumListForm">
	<div id="forum_mod">
	<table cellpadding="0" cellspacing="0" border="0" class="forumCategoryList">
		<caption></caption>
		<clotion>
		<col style="width:50%" />
		<col style="width:15%" />
		<col style="width:15%" />
		<col style="width:20%" />
		</clotion>
		<thead>
		<tr>
		<th><div class="th1">Category</div></th>
		<th><div class="th2">{$lang->document_count}</div></th>
		<th><div class="th3">{$lang->comments}</div></th>
		<th><div class="th4">{$lang->last_update}</div></th>
		</tr>
		</thead>
		<tbody>
		{@$sw = 0}
		<!--@foreach($category_list as $val)-->
		<!--@if($val->depth < 2)-->	
		<tr class="<!--@if($val->depth > 0)-->separator{$val->depth}<!--@end -->">
		<td class="td1">
			<div class="category_tit"><h{(3 + $val->depth)}><a href="{getUrl('category',$val->category_srl, 'act', 'dispForumContent')}">{$val->title}</a></h{(3 + $val->depth)}></div>
		</td>
		<td class="td2"><!--@if($val->depth >= 0)-->{$val->document_count}<!--@end --></td>
		<td class="td3"><!--@if($val->depth >= 0)-->{$val->comment_count + $val->document_count}<!--@end --></td>
		<td class="td4">
			<!--@if($val->depth >= 0 && $val->document_count)-->
				<p>{zdate($val->last_update,'Y-m-d')}</p>
				<!--@if(($val->last_post || $val->last_document))-->
				</p><span>{$lang->by}: </span>{$val->last_author}</p><a href="{getUrl('mid','','document_srl', $val->last_document,'cpage','')}#comment_{$val->last_post}" class="author">{$lang->latest_post}</a>
				<!--@end-->
			<!--@else-->
				No Threads
			<!--@end -->
		</td>
		</tr>
		<!--@end-->
		{@$sw += 1}
		<!--@end-->
		</tbody>
	</table>
	</div>	
</form>